summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xskripti/odstrani-datum-komentarjev-docx.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/skripti/odstrani-datum-komentarjev-docx.sh b/skripti/odstrani-datum-komentarjev-docx.sh
index 28517f9..41a1871 100755
--- a/skripti/odstrani-datum-komentarjev-docx.sh
+++ b/skripti/odstrani-datum-komentarjev-docx.sh
@@ -2,8 +2,8 @@ set -xe
p=`rev <<<$0 | cut -d/ -f1 | rev`
t=`mktemp -p "" -d $p.XXX`
unzip $1 -d$t
-sed -ie 's/ w:date="[^"]*"//g' $t/word/comments.xml
-sed -ie 's/ w16cex:dateUtc="[^"]"//g' $t/word/commentsExtensible.xml
+sed -i 's/ w:date="[^"]*"//g' $t/word/comments.xml
+sed -i 's/ w16cex:dateUtc="[^"]*"//g' $t/word/commentsExtensible.xml
b=`rev <<<$1 | cut -d/ -f1 | cut -d. -f2- | rev`
d=`mktemp -p "" $b.XXX.docx`
rm $d # hack that causes race condition